{% extends 'layout.html' %}
{% block title %}
    <title>新增</title>
{% endblock %}


{% block content %}
    <div class="panel panel-default">
        <div class="panel-heading">新增部门</div>
        <div class="panel-body">
            <form action="{% url 'dept_add' %}" method="post">
                <div class="form-group">
                    <label for="dept_name">部门名称</label>
                    <input type="text" class="form-control" name="name" id="dept_name" placeholder="请输入部门名称">
                </div>
                <div class="form-group">
                    <label for="address">地址</label>
                    <input type="text" class="form-control" name="address" id="address" placeholder="请输入部门地址">
                </div>
                <button type="submit" class="btn btn-primary">提交</button>
            </form>
            <span style="color: red">{{ error }}</span>
        </div>
    </div>

{% endblock %}